import { ResolveFn, Routes } from '@angular/router';
import { ParentComponent } from './parent/parent.component';
import { SunshineNgContentParentComponent } from './sunshine-ng-content/sunshine-ng-content-parent.component';
import { AlertBoxComponent } from './sunshine-dynamic/alert-box/alert-box.component';
import { TemplateVariableComponent } from './template-variable/template-variable.component';
const resolvedChildATitle: ResolveFn<string> = () => Promise.resolve('模板变量');
export const angularBaseRouterRoutes: Routes = [
    { path: 'parent-child', component: ParentComponent },
    { path: 'content-slot', component: SunshineNgContentParentComponent, title: '内容投影' },
    {
        path: 'dynamic-component', component: AlertBoxComponent
    },
    {
        path: 'template-variable', component: TemplateVariableComponent, title: resolvedChildATitle
    }
];

